package com.elong.businesstravel.protocol.login;

import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;

import com.elong.businesstravel.protocol.ProtocolDef;
import com.elong.businesstravel.protocol.baserequest.BaseELongHttpRequest;
/**
 *  企业邮箱验证
 * @author lenovo
 *
 */
public class MemberValidateEmailRequest extends BaseELongHttpRequest {

//	//验证企业邮箱
//	$aRule['/app/service/membervalidateemail'] = array(
//	'version' => array ('type' => 'float'),
//	'debug' => array ('type' => 'string','mast' => 'N'),
//	'uid' => array ('type' => 'number'),
//	'code' => array ('type' => 'number'),
//	'deviceid' => array ('type' => 'string','mast' => 'N'),
//	'token' => array ('type' => 'string','mast' => 'N')
//	);
	
	public MemberValidateEmailRequest(Context context, String code) {
		super(context);
		JSONObject jsonObject = new JSONObject();
		try {
			jsonObject.put("code", code);
		} catch (JSONException e) {
			e.printStackTrace();
		}
		setRequestActionParam(ProtocolDef.ACTION_Membervalidateemail, jsonObject);
	}

}
